import unittest

class A:
    def a(self):
        pass

a = A()




class TestCase(unittest.TestCase):
    def test01(self):
        self.assertEqual('hello','hello')

    def test02(self):
        self.assertTrue('hello')
        self.assertTrue(0)
    def test03(self):
        self.assertIsNone(None)

    def test04(self):
        self.assertNotEqual('my', 'me')     # 不相等

    def test05(self):
        self.assertFalse(0)    # 错

    def test06(self):
        self.assertIs('a', 'a')  # 是

    def test07(self):
        self.assertIsNot('a', 'b')  # 不是

    def test08(self):
        self.assertIsNone(None)  # 为空

    def test09(self):
        self.assertIn('a',['a','b'])  # 前面元素在后面的

    def test10(self):
        self.assertNotIn('a',['c','b'])

    def test11(self):
        self.assertIsInstance(a, A)

    def test12(self):
        self.assertNotIsInstance(a , A)
if __name__ == '__main__':
    unittest.main(verbosity=2)